<template>
	<view>
		<view class="titlebox">{{title}}</view>
		<view class="descboxs">
			{{desc}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'',
				desc:'',
				id:'',
			}
		},
		onLoad(option) {
			this.id = option.id
			this.getlist()
		},
		onShow() {
			// this.getlist()
		},
		methods: {
			getlist(){
				uni.showLoading({})
				this.$http({
					url:'api/Answer/user_msg_detail',
					data:{
						token:uni.getStorageSync('token'),
						id:this.id,
					}
				}).then(res=>{
					uni.hideLoading()
					this.title = res.data.info.title
					this.desc = res.data.info.desc
					console.log(this.list,'list')
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.titlebox{
		text-align: center;
		margin: 30rpx 0;
		font-weight: bold;
		font-size: 32rpx;
	}
	.descboxs{
		width: 690rpx;
		margin: 0 auto 30rpx auto;
		text-indent:30px;
	}

</style>
